package com.project2.mapper;

import com.project2.bean.po.MarketFootprint;
import com.project2.bean.po.MarketFootprintExample;
import com.project2.bean.vo.BeanInListInDataInWxFootprintListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketFootprintMapper {
    long countByExample(MarketFootprintExample example);

    int deleteByExample(MarketFootprintExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketFootprint record);

    int insertSelective(MarketFootprint record);

    List<MarketFootprint> selectByExample(MarketFootprintExample example);

    MarketFootprint selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketFootprint record, @Param("example") MarketFootprintExample example);

    int updateByExample(@Param("record") MarketFootprint record, @Param("example") MarketFootprintExample example);

    int updateByPrimaryKeySelective(MarketFootprint record);

    int updateByPrimaryKey(MarketFootprint record);

    //BeanInListInDataInWxFootprintListVo queryRealFootPrintListByGoodsIdAndDeleted(Integer goodsId,Boolean deleted);

//    List<BeanInListInDataInWxFootprintListVo> queryRealFootPrintListByGoodsIdAndUserIdAndDeleted(Integer goodsId, Integer userId, Integer deleted);
BeanInListInDataInWxFootprintListVo queryRealFootPrintListByGoodsIdAndUserIdAndDeleted(Integer goodsId, Integer userId, Integer deleted);
    void deleteFootprintById(Integer id);

    List<MarketFootprint> queryFootprintListByGoodsIdAndUserIdAndDeleted(Integer id, Integer userId, Integer deleted);

    List<Integer> queryAllGoodsId();

    List<MarketFootprint> selectByCondition(Integer userId);
}